{include file='../../../PublicView/include.html'}
<div class="taeapp admin-table" cellpadding="0" cellspacing="0" border="0">
        <div class="taeapp admin-table-side  tips tips-small tips-notice tips-no-icon">
            <!--菜单部分-->
            <div class="taeapp admin-nav">
			{include file='../../../PublicView/shopleft.html'}
			</div>
            <!--菜单部分-->
        </div>
        <div class="taeapp admin-table-main">
            <!--内容部分-->
				<ul class="breadcrumb">
					<li><a href="/">互动到店</a> <span class="divider">/</span></li>
					<li>活动管理 <span class="divider">/</span></li>
					<li class="active">{$title}</li>
				</ul>
		
			<!--内容部分-->
			{include file='../../../PublicView/showmessage.html'}
			<div class="row">
			  <div class="panel">
			  <div class="panel-header">
				<h3>公告管理</h3>
			  </div>
			  <div class="panel-body clearfix">
				<form method="post" action="/?a=gamegg_save&m=shopadmin">
					<div class="form-horizontal">
						<div class="row">
							<div class="control-group span20">
							<label class="control-label">公告设置</label>
							<div class="controls control-row-auto span14  span-width">
									<div class="well">
										<div class="row control-row1">
											<span class="auxiliary-text offset1">
												设置您的公告内容。
											</span>
										</div>
											<div class="control-group offset1">
												<div class=" clearfix">
												<textarea class="span10" name="notice">{if $cfg.notice}{$cfg.notice}{else}活动自{$cfg.start_time|date_format:'%Y-%m-%d'}开始，奖品总价值{$gft.PR}元，总中奖率{$gft.PB}%！{/if}
												</textarea>
												</div>
											</div>
									</div>
							</div>
							</div>
							<div class="control-group span20">
							<label class="control-label">活动规则</label>
							<div class="controls control-row-auto span14  span-width">
									<div class="well">
										<div class="row control-row1">
											<span class="auxiliary-text offset1">
												写明活动规则。系统已根据设置为您生成活动规则：
											</span>
										</div>
											<div class="control-group offset1">
												<div class=" clearfix">
														<!-- {if $cfg.likeme && 1==2}喜欢活动方可抽奖。 {/if}
														{if $cfg.followme && 1==2}关注发起人方可抽奖。  {/if}
														{if $cfg.everytrades && 1==2}每{$cfg.everytrades}次交易完成可抽奖{$cfg.everytrades_times}次。{/if}
														{if $cfg.everysumpay && 1==2}每累计消费{$cfg.everysumpay}元完成可抽奖{$cfg.everysumpay_times}次。 {/if}
														{if $cfg.goodrates==0 && 1==2 }差评用户不可抽奖{else}仅好评用户可抽奖。{/if}
														{if $cfg.sumpay && 1==2}仅累计消费超过{$cfg.sumpay}元的用户可抽奖。 {/if}
														{if $cfg.goodrate_times && 1==2}每次好评可抽奖{$cfg.goodrate_times}次。 {/if}
														{if $cfg.trads ==0}新老客户均可抽奖{else}仅交易{$cfg.trads}次的老客户可以抽奖。{/if} -->
												<textarea class="span10" name="notice_rule" style="height:200px">{if $cfg.notice_rule}{$cfg.notice_rule}{else}{if !$cfg.curtool}活动规则未定{else}{if $cfg.collect}收藏店铺方可抽奖。{/if}{if $cfg.brandid!=0}关注品牌方可抽奖。 {/if}{if $cfg.tms_newcomer}新用户可抽奖{$cfg.tms_newcomer}次。{/if}{if $cfg.tms_everyday}每天参与可抽奖{$cfg.tms_everyday}次。{/if}{if $tool_type==3}游戏设定：{if $cfg.range_time==1}每10分钟一轮。{/if}{if $cfg.range_time==3}每30分钟一轮。{/if}{if $cfg.range_time==4}每1小时一轮。{/if}每轮第一名可抽奖{$cfg.game_lv1_times}次。每轮第二名可抽奖{$cfg.game_lv2_times}次。每轮第三名可抽奖{$cfg.game_lv3_times}次。每轮其他名次可抽奖{$cfg.game_def_times}次。{/if}{if $cfg.orderset}每个{$cfg.order_payment}元以上的订单号{if $cfg.order_success_times>0}交易完成时抽奖{$cfg.order_success_times}次，{/if}{if $cfg.order_pay_times>0}交易付款后抽奖{$cfg.order_pay_times}次。{/if}{if $cfg.tms_goodrate}每个订单好评时可抽奖{$cfg.tms_goodrate}次。{/if}{if $cfg.order_payment_addon}订单金额超额时可累计次数，{if $cfg.order_payment_addon==10000}超几倍累计几次。{else}最多累计{$cfg.order_payment_addon}次。{/if}  {/if}{/if}{if $cfg.cart_items_count}将指定商品加入购物车可抽奖，每加入一款到购物车可抽奖{$cfg.tms_cartadd}次。 {/if}{/if}{/if}</textarea>
												</div>
											</div>
									</div>
							</div>
							</div>
							<div class="control-group span20">
							<label class="control-label">领奖方式</label>
							<div class="controls control-row-auto span14  span-width">
									<div class="well">
										<div class="row control-row1">
											<span class="auxiliary-text offset1">
												各种奖品的领奖方法。系统已为您生成内置的领奖方法：
											</span>
										</div>
											<div class="control-group offset1">
												<div class=" clearfix">
												<textarea class="span10" name="notice_receive" style="height:100px">{if $cfg.notice_receive}{$cfg.notice_receive}{else}实物奖：中奖后请截图发送给客服，经客服确认后请先拍下付款，收货并好评后全额返现。
												优惠券、包邮券、支付宝红包：请复制领奖链接，在浏览器内打开直接领取。{/if}
												{if $cfg.withdraw}活动结束以后{$cfg.withdraw}。{/if}
												</textarea>
												</div>
											</div>
									</div>
							</div>
							</div>
							<div class="form-actions centered ">
								<button type="submit" class="button button-primary">保存</button>
								<a href="/?a=gamegg&m=shopadmin&auto=true" class="button js-auto">自动生成</a>
							</div>
						</div>
					</div>
				</form>
			  </div>
			  </div>
			</div>
							
			<input type="hidden" class="type" value="{$type|default:0}" />
        <!--内容部分-->
        </div>
</div>